package encaps.utils.rendering;

import static encaps.utils.html.HTML.MULTIPLE;
import static encaps.utils.html.HTML.SIZE;
import encaps.utils.html.HTMLElement;
import org.jdom.Element;

public class MultiSelectFactory extends AbstractSelectFactory {

    @Override
    public HTMLElement renderField(Element e, boolean edit) {
        HTMLElement select = super.renderField(e, edit);
        select.addAttribute(SIZE, 7);
        select.addAttribute(MULTIPLE, true);
        return select;
    }
}
